<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /**
         * 可用new Boolean()定义 valueOf()取值，但不推荐
        */
        const b = new Boolean(true)
        console.log(b.valueOf());
    </script>
</body>
</html>